package ModelLayer;



/**
 * The test class OrderTest.
 *
 * @author  (your name)
 * @version (a version number or a date)
 */
public class OrderTest extends junit.framework.TestCase
{
    /**
     * Default constructor for test class OrderTest
     */
    public OrderTest()
    {
    }

    /**
     * Sets up the test fixture.
     *
     * Called before every test case method.
     */
    protected void setUp()
    {
    }

    /**
     * Tears down the test fixture.
     *
     * Called after every test case method.
     */
    protected void tearDown()
    {
    }

	public void testCreateOrder()
	{
		ModelLayer.Order order1 = new ModelLayer.Order(9500, "15 dage");
	}

	public void testSetOrderInformation()
	{
		ModelLayer.Order order1 = new ModelLayer.Order(9500, "15 dage");
		order1.setDate("20 dage");
		order1.setId(1500);
		order1.setStatus("Not in stock");
		order1.setTotalPrice(5000);
		order1.setVAT(6000);
		order1.setWithoutVAT(7000);
	}

	public void testGetOrderInformation()
	{
		ModelLayer.Order order1 = new ModelLayer.Order(9500, "15 dage");
		order1.setStatus("Not in stock");
		order1.setTotalPrice(9000);
		order1.setVAT(5000);
		order1.setWithoutVAT(7000);
		assertSame("15 dage", order1.getDate());
		assertEquals(9500, order1.getId());
		assertEquals("Not in stock", order1.getStatus());
		assertEquals(9000.0, order1.getTotalPrice());
		assertEquals(5000.0, order1.getVAT());
		assertEquals(7000.0, order1.getWithoutVAT());

	}
}



